﻿@model Manager.Model.Admin.M_Category

@{
    ViewBag.Title = "栏目类别管理";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
@section header{}

<div class="nav">当前位置 :-> 栏目类别 :-> 添加栏目类别</div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>栏目类别信息</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeName)
            @Html.ValidationMessageFor(model => model.TypeName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeCode)
            @Html.ValidationMessageFor(model => model.TypeCode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeDesc)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeDesc)
            @Html.ValidationMessageFor(model => model.TypeDesc)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ModuleID)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.ModuleID, ViewBag.CategorySelect as IEnumerable<SelectListItem>)
            @Html.ValidationMessageFor(model => model.ModuleID)
        </div>

        <p>
            <input type="submit" value="添加" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "Index")
</div>

